/** * * * @date 2020骞?鏈?鏃 * */ // ie娴忚鍣ㄦ娴 function getIEVersion(){ var ua = navigator.userAgent; var ver = 11; if(ua){ if(ua.match(/MSIE\s+([\d]+)\./i)){ ver = RegExp.$1; }else if(ua.match(/Trident.*rv\s*:\s*([\d]+)\./i)){ ver = RegExp.$1; } } return parseInt(ver); } if(getIEVersion()<10) {alert('鎮ㄧ洰鍓嶇殑IE鐗堟湰澶綆锛岃鍗囩骇鍚庢祻瑙堬紒Your current version of IE is too low, please browse after upgrading!');location.href="https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=40901";} //鑾峰彇灞忓箷瀹介珮 var w = document.documentElement.clientWidth; var h = document.documentElement.clientHeight; //璁剧疆htmlfontSize ;(function (win) { resizeRoot(); function resizeRoot() { var width = document.documentElement.clientWidth; document.documentElement.style.fontSize = width/19.03 + 'px'; } window.onresize = resizeRoot; })(window); //娓呴櫎鏍峰紡 $(function(){ // $('.BJQ *').removeAttr("style").removeAttr("width").removeAttr("height").removeAttr("valign").removeAttr("color"); if(w<1200){ $(".BJQ table").wrap("
");} $(".BJQ table *").removeAttr("style").removeAttr("width").removeAttr("height").removeAttr("valign").removeAttr("color"); }); //浜岀骇瀵艰埅 $(".indexNav li").hover(function(){ $(this).children('ul').slideDown(300); },function(){ $(this).children('ul').stop(true,true).slideUp(200); }); //濡傛灉鏈変簩绾ц彍鍗曡拷鍔犱笅鎷夊浘鏍 $(".indexNav>ul>li>ul>li>a").each(function(){ var s=$(this).next("ul").find("li").length; if (s>0) { $(this).append('') } }); //绉诲姩绔鑸 $(".wap_nav>ul>li a").each(function(){ var s=$(this).next("ul").find("li").length; if (s>0) {$('').insertAfter(this);} }); $('.wap_head .menu').click(function(){ $('body').toggleClass('wapnav'); if ($('body').hasClass("wapnav")) { $(this).attr("class","ico menu icon-guanbi"); } else { $(this).attr("class","ico menu icon-webicon03"); }; $('.wap_nav>ul>li').each(function(){ i=$(this).index(); $(this).toggleClass("i"+(i+1)+""); $(this).toggleClass("fadeInRight animated"); $('.wap_nav .sousuonr').toggleClass("fadeInRight animated"); $('.wap_nav select').toggleClass("fadeInRight animated"); }); }); $('.wap_nav>ul i').click(function(){ $(this).toggleClass("this"); $(this).parent('li').siblings('li').find("i").attr("class","ico icon-jiahao"); if ($(this).hasClass("this")) { $(this).attr("class","this ico icon-minus"); } else { $(this).attr("class","ico icon-jiahao"); }; $(this).next('ul').slideToggle(''); $(this).parent('li').siblings('li').find("ul").slideUp(""); }); //瀵艰埅鍥哄畾 function positionnNav(){ $(window).scroll(function(){ var top=$(window).scrollTop() if(top>0){$('body').addClass("fixed")} else{$('body').removeClass("fixed")} }); }; positionnNav('body'); $("body").scroll(); var Top1 = $(window).scrollTop(); $(window).scroll(function(){ var Top2 = $(document).scrollTop(); if(Top2 > Top1){ $('body').addClass("fixedB") } else { $('body').removeClass("fixedB") } Top1 = Top2 }); //tab鍒囨崲 function tab(a){ $(a.menu).children().eq(0).addClass(a.style); $(a.box).children().eq(0).siblings().hide(); $(a.menu).children().bind(a.event,function(){ $(this).addClass(a.style).siblings().removeClass(a.style); $(a.box).children().hide().eq($(this).index()).show(); }); }; //鎶樺彔 function fold(a){ $(a.title).each(function(){ if ($(this).hasClass(a.style)){ $(this).next().show(); } }); $(a.title).click(function(){ $(this).next().slideToggle().parents().siblings().children(a.content).slideUp(); $(this).toggleClass(a.style).parents().siblings().children().removeClass(a.style); if ($(this).hasClass(a.style)){ $(this).find('i').attr("class",a.show); }else{ $(this).find('i').attr("class",a.hide); }; $(this).parents().siblings('dl').find('i').attr("class",a.hide); }); }; // 椤甸潰婊氬姩鍔ㄧ敾娣诲姞 animate__slideInDown animate__fadeInUp animate__fadeInLeft animate__fadeInRight animate__zoomIn function Animation(a,b,c,d){ if (w>1200) {gao=100;} else {gao=30;}; $(a).css("visibility",'hidden'); $(window).scroll(function(){ s=0; $(a).each(function(){ var topa=$(window).scrollTop()+document.documentElement.clientHeight; var topb=$(this).offset().top+gao; s+=c; if (s>c*d) { s=c; }; $(this).css("animation-delay",s+'s') if(topa>topb){ $(this).css("visibility",'visible') $(this).addClass(b); } }); }); }; if (w>1200) { Animation('.indexB ul li','animate__animated animate__zoomIn',0.1); }else{ Animation('.indexB ul li','animate__animated animate__zoomIn',0); } Animation('.indexTitle h2','animate__animated animate__zoomIn',0); Animation('.indexTitle h3','animate__animated animate__fadeInUp',0); Animation('.indexTitle p','animate__animated animate__fadeInUp',0); Animation('.indexALeft','animate__animated animate__fadeInLeft',0); Animation('.indexARight','animate__animated animate__fadeInRight',0); Animation('#indexC .swiper-slide','animate__animated animate__flipInX',0); Animation('.indexnews_list .swiper-slide','animate__animated animate__zoomIn',0); Animation('#indexF','animate__animated animate__fadeInUp',0); Animation('.aboutA ul li','animate__animated animate__fadeInUp',0); Animation('.aboutB ul li','animate__animated animate__flipInX',0); Animation('.HonorA h2','animate__animated animate__fadeInUp',0); Animation('.HonorA p','animate__animated animate__fadeInUp',0); Animation('#HonorA','animate__animated animate__fadeInUp',0); Animation('#HonorB','animate__animated animate__fadeInUp',0); Animation('.aboutEquipmentTitle','animate__animated animate__fadeInUp',0); Animation('#aboutEquipmentA','animate__animated animate__fadeInUp',0); Animation('#aboutEquipmentB','animate__animated animate__fadeInUp',0); Animation('#aboutEquipmentC','animate__animated animate__fadeInUp',0); Animation('#aboutEquipmentD','animate__animated animate__fadeInUp',0); Animation('.technologyA','animate__animated animate__fadeInUp',0); Animation('.technologyB h2','animate__animated animate__fadeInUp',0); Animation('.technologyB ul li','animate__animated animate__zoomIn',0); Animation('.technologyC img','animate__animated animate__fadeInLeft',0); Animation('.technologyC h3','animate__animated animate__fadeInRight',0); Animation('.technologyC .BJQ','animate__animated animate__fadeInRight',0.1); Animation('.download h2','animate__animated animate__fadeInUp',0); Animation('.downloadB tr','animate__animated animate__fadeInUp',0) Animation('.industry ul li','animate__animated animate__fadeInUp',0.1,3); Animation('.ProductTop','animate__animated animate__fadeInUp',0.1,3); Animation('.ProductL','animate__animated animate__fadeInLeft',0); Animation('.ProductR','animate__animated animate__fadeInRight',0); Animation('.NewsList ul li','animate__animated animate__fadeInUp',0.1,3); Animation('.recruitA ul','animate__animated animate__fadeInUp',); Animation('.recruitA p','animate__animated animate__fadeInUp',); Animation('.recruitBsousuo','animate__animated animate__fadeInUp',); Animation('.recruitB dl','animate__animated animate__fadeInUp',); Animation('.map','animate__animated animate__fadeInUp',0.1,3); Animation('.ContactLeft','animate__animated animate__fadeInLeft',0); Animation('.ContactRight','animate__animated animate__fadeInRight',0); $('body').scroll(); tab({ menu:'.UserLandNav', box:'.UserLandForm', event:'click',//mouseenter style:'this' }) fold({ title:'.recruitB dt', content:'.recruitB dd', style:'this', hide:'ico icon-jiahao', show:'ico icon-minus' }) function codeCountDown(obj){ var aa = $(obj); var second = 60; aa.hide(); aa.next("div").find("span").html(second); aa.next("div").show(); var timer = null; timer = setInterval(function(){ second -= 1; if(second >0 ){ aa.next("div").find("span").html(second); }else{ clearInterval(timer); aa.show(); aa.next("div").hide(); } },1000); }